import { request } from '@/api/auth'

export const addPermission = (data: {}) => {
    return request.post("/permission/create", data)
}

export const listPermission = (query: {}) => {
    return request.get("/permission/list", { params: query })
}